package com.cloudeasy.label;

import com.cloudeasy.api.util.SnowFlake;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication(scanBasePackages = {
        "com.cloudeasy.label",
        "com.cloudeasy.core"
})
@EnableDiscoveryClient
@EnableFeignClients
public class LabelApplication {
    public static void main(String[] args) {
        SpringApplication.run(LabelApplication.class, args);
    }

    @Bean
    public SnowFlake snowFlake() {
        return new SnowFlake(3, 3);
    }
}
